package com.gticket.buyticket.service.serviceimpl;

import com.gticket.buyticket.mapper.CinemaMapper;
import com.gticket.buyticket.mapper.MovieInfoMapper;
import com.gticket.buyticket.pojo.Cinema;
import com.gticket.buyticket.service.CinemasService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Data
@Transactional
public class CinemasServiceImpl implements CinemasService {

    @Autowired
    private CinemaMapper cinemaMapper;

    @Override
    public List<Cinema> getCinemas() {
        return cinemaMapper.getCinemas();
    }

    @Override
    public Cinema getCinemaInfo(Cinema cinema) {
        return cinemaMapper.getCinemaInfo(cinema);
    }
}
